#include<iostream>
using namespace std;
#include <ezwin.h>
#include <cassert>
#include "rect.h"
#include<cmath>
// Create a 10cm x 10cm window, with title "Lines"
SimpleWindow MyWindow("My First Window", 10.0, 10.0,Position(4.0,5.8));
                       

// ApiMain(): create a window and display some shapes
int ApiMain() {
float x,y;
  MyWindow.Open();
  assert(MyWindow.GetStatus() == WindowOpen);
  Position Center=MyWindow.GetCenter();
  MyWindow.RenderLine(Position(5.0,0.0),Position(5.0,10.0),
        Black,0.0);
  MyWindow.RenderLine(Position(0.0,5.0),Position(10.0,5.0),
        Black,0.0);
  
  
  for(x=-4.5;x<4.5;x=x+0.001){y=sin(x);
    MyWindow.RenderLine(Position(5.0,5.0)+Position(x,-y),Position(5.0,5.0)+Position(x,-y),
      Blue,0.0);
      }	
      }
        
  
  


  // Some Lines

  

